package com.atguigu.eduservice.toming;

/**
 * @ClassName MobilePhoneDesensitization
 * @Description: TODO
 * @Author: NeySun
 * @Create: 2022-10-31 14:27
 * @Version 1.0
 **/
public class MobilePhoneDesensitization extends AbstractDesensitization {

    @Override
    public String serialize(String value) {
        return value.replaceAll("(\\d{3})\\d{4}(\\d{4})","$1****$2");
    }

}
